# -*- coding:utf-8 -*-

import tkinter as tk
from HandControlVolume import HandControlVolume
from NumberRecognize import NumRecognize

if __name__ == '__main__':
    def numRecognition():
        control = NumRecognize()
        control.recognize()

    def controlVolume():
        control = HandControlVolume()
        control.recognize()

    root = tk.Tk()
    root.title('手势识别与控制')
    root.geometry('400x300')
    btn1 = tk.Button(root, text='数字识别', command=numRecognition)
    btn2 = tk.Button(root, text='音量控制', command=controlVolume)

    btn1.pack()
    btn2.pack()

    btn1.place(x=160, y=80)
    btn2.place(x=160, y=180)

    root.mainloop()

